package com.yfp.operation.service;

import com.yfp.operation.domain.PositionSharing;

import java.util.List;

/**
 * @Description: 点位分成
 *
 * @CreateDate: 2024/6/14 17:36
 * @UpdateUser:
 * @UpdateDate: 2024/6/14 17:36
 * @UpdateRemark: 暂无修改
 * @Version: 1.0
 */
public interface PositionSharingService {

    /**
     * 查询
     *
     * @param id
     * @return
     */
    PositionSharing getById(Long id);

    /**
     * 查询
     *
     * @param positionId
     * @return
     */
    List<PositionSharing> getByPositionId(String positionId);

    /**
     * 新增
     *
     * @param positionSharing
     */
    void add(PositionSharing positionSharing);

    /**
     * 编辑
     *
     * @param positionSharing
     */
    void edit(PositionSharing positionSharing);

    /**
     * 删除
     *
     * @param positionId
     */
    void delByPositionId(String positionId);

    List<PositionSharing> selectList(List<String> machineIds);

    /**
     * 查询
     *
     * @param positionId
     * @param userId
     * @return
     */
    List<PositionSharing> getByPositionIdAndUserId(String positionId, Long userId);


    /**
     * 查询
     *
     * @param positionIds
     * @param userId
     * @return
     */
    List<PositionSharing> getByPositionIdsAndUserId(List<String> positionIds, Long userId);

    /**
     * 查询所有分账配置
     */
    List<PositionSharing> findAll();

    /**
     * 查询,根据userId
     *
     * @param userId
     * @return
     */
    List<PositionSharing> getByUserId(Long userId);
}
